/**
 * Created by hms on 2020-08-22.
 */
import { ROAST_CONFIG } from '../config.js';

export default{
    getPersonList:function(data){
        return axios.get(ROAST_CONFIG.API_URL+'/personlist',{ params : data});
    },
    editPerson:function(data){
        return axios.post(ROAST_CONFIG.API_URL+'/editperson',qs.stringify(data),{
            headers: {'Content-Type': 'application/x-www-form-urlencoded'}
        });
    },
    getPersonInfo:function(data){
        return axios.get(ROAST_CONFIG.API_URL+'/personinfo',{
            params:data
        });
    },
    delPerson:function(data){
        return axios.get(ROAST_CONFIG.API_URL+'/delperson',{
            params:data
        });
    },
    getAllNations:function(data){
        return axios.get(ROAST_CONFIG.API_URL+'/allnations',{params:data});
    }
}
